package com.sry.blog.sys.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author SR_Y
 */
public interface FileService {

   /**
    * 上传图片
    * @param file
    * @return
    * @throws IOException
    */
   String upload(MultipartFile file) throws IOException;

   /**
    * 上传markdown文档
    * @param markdown
    * @return
    * @throws IOException
    */
   String uploadMarkDown(String markdown,String path) throws IOException;

   //getMarkSown
   String getMarkDown(Integer id) throws IOException;
   boolean download(MultipartFile file);

}
